home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
pce32dll.zip
/
PCEDLL
/
BORLAND
/
PCE32.C
next >
Wrap
Text File
|
1996-10-22
|
675b
|
55 lines
#include <windows.h>
int WINAPI _export TimesTwo(int x);
BOOL WINAPI DllEntryPoint(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_PROCESS_DETACH:
{
break;
}
}
return TRUE;
}
/* THIS IS THE FIRST FUNCTION IN THE DLL , ITS VERY SIMPLE SO EVEN A
NOVICE SHOULD BE ABLE TO UNDERSTAND IT.
2 PARAMETERS ARE PASSED TO THE FUNCTION , X AND Y ,
THESE 2 PARAMETERS ARE ADDED TOGETHER , THE RESULT IS PASSED BACK
TO THE CALLING PROCEDURE.
*/
int WINAPI _export TimesTwo(int x)
{
return x * 2;
}